//
//  OPMGuideCountryListCell.m
//  OnePiece
//
//  Created by wsy on 15/10/29.
//  Copyright © 2015年 wsy. All rights reserved.
//

#import "OPMGuideCountryListCell.h"
#import <UIImageView+WebCache.h>
@implementation OPMGuideCountryListCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _picture = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH/2-30, SCREEN_WIDTH/2-30)];
        [self.contentView addSubview:_picture];
        _country = [[UILabel alloc]initWithFrame:CGRectMake(10, SCREEN_WIDTH/2-50, 100, 20)];
        _country.textColor = [UIColor whiteColor];
        [self.contentView addSubview:_country];
    }
    return self;
}

- (void)setModel:(OPMguideListModel *)model
{
    [_picture sd_setImageWithURL:[NSURL URLWithString:model.img] placeholderImage:[UIImage imageNamed:@"beijingImg.jpg"]];
    _country.text = model.name;
}





@end
